/* eslint no-unused-vars:0 */
import React from 'react';
import ReactDOM from 'react-dom';
import './App';
import router from './router.js';
import Admin from './Admin.js';
import Login from './pages/login/index';
import { HashRouter, Switch, Route } from 'react-router-dom';

ReactDOM.render(
    <HashRouter>
        <Switch>
            <Route exact path="/" component={Login} />
            <Route exact path="/login" component={Login} />
            <Route path="/admin" component={router} />
        </Switch>
    </HashRouter>,
    document.getElementById('root')
);

/*ReactDOM.render((
    <HashRouter history={{createBrowserHistory}}>
        <div>
            <Route path="/" component={App} />
            <Router/>
        </div>
    </HashRouter>
), document.getElementById('root'));*/

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
